import request from '@/utils/request'
import api from './index'

export const login = data => {
  return request({
    url: api.Login,
    method: 'POST',
    data
  })
}

export const getUserInfo = () => {
  return request({
    url: api.Profile,
    method: 'GET'
  })
}
